

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>view Package &mdash; open-hea 0.1 documentation</title>
    
    <link rel="stylesheet" href="_static/default.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '',
        VERSION:     '0.1',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="top" title="open-hea 0.1 documentation" href="index.html" />
    <link rel="next" title="xlrd Package" href="xlrd.html" />
    <link rel="prev" title="model Package" href="model.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="xlrd.html" title="xlrd Package"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="model.html" title="model Package"
             accesskey="P">previous</a> |</li>
        <li><a href="index.html">open-hea 0.1 documentation</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="view-package">
<h1>view Package<a class="headerlink" href="#view-package" title="Permalink to this headline">¶</a></h1>
<div class="section" id="id1">
<h2><tt class="xref py py-mod docutils literal"><span class="pre">view</span></tt> Package<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2>
<span class="target" id="module-view.__init__"></span><p>This file is part of open-hea.</p>
<p>open-hea is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your
option) any later version.</p>
<p>open-hea is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.</p>
<p>You should have received a copy of the GNU General Public License
along with open-hea.  If not, see &lt;<a class="reference external" href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>&gt;.</p>
</div>
<div class="section" id="module-view.frmdatabasemessage">
<span id="frmdatabasemessage-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">frmdatabasemessage</span></tt> Module<a class="headerlink" href="#module-view.frmdatabasemessage" title="Permalink to this headline">¶</a></h2>
<p>This file is part of open-HEA.</p>
<p>open-ihm is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your
option) any later version.</p>
<p>open-ihm is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.</p>
<p>You should have received a copy of the GNU General Public License
along with open-ihm.  If not, see &lt;<a class="reference external" href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>&gt;.</p>
<dl class="class">
<dt id="view.frmdatabasemessage.FrmDatabaseMessage">
<em class="property">class </em><tt class="descclassname">view.frmdatabasemessage.</tt><tt class="descname">FrmDatabaseMessage</tt><big>(</big><em>message</em>, <em>parent=None</em><big>)</big><a class="headerlink" href="#view.frmdatabasemessage.FrmDatabaseMessage" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">PyQt4.QtGui.QDialog</span></tt>, <tt class="xref py py-class docutils literal"><span class="pre">Ui_DatabaseMessage</span></tt>, <a class="reference internal" href="#view.mixins.MDIDialogMixin" title="view.mixins.MDIDialogMixin"><tt class="xref py py-class docutils literal"><span class="pre">view.mixins.MDIDialogMixin</span></tt></a></p>
<p>Set up the dialog box interface</p>
</dd></dl>

<dl class="function">
<dt id="view.frmdatabasemessage.bin">
<tt class="descclassname">view.frmdatabasemessage.</tt><tt class="descname">bin</tt><big>(</big><em>QTextStream</em><big>)</big> &rarr; QTextStream<a class="headerlink" href="#view.frmdatabasemessage.bin" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="function">
<dt id="view.frmdatabasemessage.hex">
<tt class="descclassname">view.frmdatabasemessage.</tt><tt class="descname">hex</tt><big>(</big><em>QTextStream</em><big>)</big> &rarr; QTextStream<a class="headerlink" href="#view.frmdatabasemessage.hex" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="function">
<dt id="view.frmdatabasemessage.oct">
<tt class="descclassname">view.frmdatabasemessage.</tt><tt class="descname">oct</tt><big>(</big><em>QTextStream</em><big>)</big> &rarr; QTextStream<a class="headerlink" href="#view.frmdatabasemessage.oct" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</div>
<div class="section" id="module-view.frmmainwindow">
<span id="frmmainwindow-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">frmmainwindow</span></tt> Module<a class="headerlink" href="#module-view.frmmainwindow" title="Permalink to this headline">¶</a></h2>
<p>This file is part of open-ihm.</p>
<p>open-ihm is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your
option) any later version.</p>
<p>open-ihm is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.</p>
<p>You should have received a copy of the GNU General Public License
along with open-ihm.  If not, see &lt;<a class="reference external" href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>&gt;.</p>
<dl class="class">
<dt id="view.frmmainwindow.FrmMainWindow">
<em class="property">class </em><tt class="descclassname">view.frmmainwindow.</tt><tt class="descname">FrmMainWindow</tt><big>(</big><em>parent=None</em><big>)</big><a class="headerlink" href="#view.frmmainwindow.FrmMainWindow" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">PyQt4.QtGui.QMainWindow</span></tt>, <tt class="xref py py-class docutils literal"><span class="pre">Ui_MainWindow</span></tt></p>
<p>Creates the Main Window of the application using the main 
window design in the gui.designs.ui_mainwindow module</p>
<dl class="method">
<dt id="view.frmmainwindow.FrmMainWindow.centerSubWindow">
<tt class="descname">centerSubWindow</tt><big>(</big><em>subWin</em><big>)</big><a class="headerlink" href="#view.frmmainwindow.FrmMainWindow.centerSubWindow" title="Permalink to this definition">¶</a></dt>
<dd><p>Moves a subwindow to the center of the Mdi Area</p>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="view.frmmainwindow.PicturedMDIArea">
<em class="property">class </em><tt class="descclassname">view.frmmainwindow.</tt><tt class="descname">PicturedMDIArea</tt><big>(</big><em>background_pixmap</em>, <em>parent=None</em><big>)</big><a class="headerlink" href="#view.frmmainwindow.PicturedMDIArea" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">PyQt4.QtGui.QMdiArea</span></tt></p>
<p>This class creates an MDI area with a centred background image.</p>
<p>Code is adapted from here:</p>
<p><a class="reference external" href="http://www.diotavelli.net/PyQtWiki/Adding%20a%20background%20image%20to%20an%20MDI%20area">http://www.diotavelli.net/PyQtWiki/Adding%20a%20background%20image%20to%20an%20MDI%20area</a></p>
<p>Thanks to David Boddie on the PyQt mailing list.</p>
<dl class="method">
<dt id="view.frmmainwindow.PicturedMDIArea.paintEvent">
<tt class="descname">paintEvent</tt><big>(</big><em>event</em><big>)</big><a class="headerlink" href="#view.frmmainwindow.PicturedMDIArea.paintEvent" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="view.frmmainwindow.PicturedMDIArea.resizeEvent">
<tt class="descname">resizeEvent</tt><big>(</big><em>event</em><big>)</big><a class="headerlink" href="#view.frmmainwindow.PicturedMDIArea.resizeEvent" title="Permalink to this definition">¶</a></dt>
<dd><p>Ensure that the logo stays in the centre of the screen on resize.</p>
</dd></dl>

</dd></dl>

</div>
<div class="section" id="module-view.mixins">
<span id="mixins-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">mixins</span></tt> Module<a class="headerlink" href="#module-view.mixins" title="Permalink to this headline">¶</a></h2>
<p>This file is part of open-HEA.</p>
<p>open-ihm is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your
option) any later version.</p>
<p>open-ihm is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.</p>
<p>You should have received a copy of the GNU General Public License
along with open-ihm.  If not, see &lt;<a class="reference external" href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>&gt;.</p>
<dl class="class">
<dt id="view.mixins.DataEntryMixin">
<em class="property">class </em><tt class="descclassname">view.mixins.</tt><tt class="descname">DataEntryMixin</tt><a class="headerlink" href="#view.mixins.DataEntryMixin" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
<dl class="method">
<dt id="view.mixins.DataEntryMixin.getDbString">
<tt class="descname">getDbString</tt><big>(</big><em>strSeed</em><big>)</big><a class="headerlink" href="#view.mixins.DataEntryMixin.getDbString" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="view.mixins.DataEntryMixin.getIntMonth">
<tt class="descname">getIntMonth</tt><big>(</big><em>month</em><big>)</big><a class="headerlink" href="#view.mixins.DataEntryMixin.getIntMonth" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="view.mixins.DataEntryMixin.getStringMonth">
<tt class="descname">getStringMonth</tt><big>(</big><em>month</em><big>)</big><a class="headerlink" href="#view.mixins.DataEntryMixin.getStringMonth" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="view.mixins.DataEntryMixin.getViewString">
<tt class="descname">getViewString</tt><big>(</big><em>strSeed</em><big>)</big><a class="headerlink" href="#view.mixins.DataEntryMixin.getViewString" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</dd></dl>

<dl class="class">
<dt id="view.mixins.MDIDialogMixin">
<em class="property">class </em><tt class="descclassname">view.mixins.</tt><tt class="descname">MDIDialogMixin</tt><a class="headerlink" href="#view.mixins.MDIDialogMixin" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
<p>Used by all dialog boxes.</p>
<dl class="method">
<dt id="view.mixins.MDIDialogMixin.mdiClose">
<tt class="descname">mdiClose</tt><big>(</big><big>)</big><a class="headerlink" href="#view.mixins.MDIDialogMixin.mdiClose" title="Permalink to this definition">¶</a></dt>
<dd><p>Close this dialog box.</p>
<p>The dialog may be the active sub-window of an MDI area, or not.</p>
</dd></dl>

<dl class="method">
<dt id="view.mixins.MDIDialogMixin.setMdi">
<tt class="descname">setMdi</tt><big>(</big><em>mdi</em><big>)</big><a class="headerlink" href="#view.mixins.MDIDialogMixin.setMdi" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</dd></dl>

<dl class="class">
<dt id="view.mixins.MySQLMixin">
<em class="property">class </em><tt class="descclassname">view.mixins.</tt><tt class="descname">MySQLMixin</tt><a class="headerlink" href="#view.mixins.MySQLMixin" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
<p>Methods for dealing with the MySQL database.</p>
<p>TODO: move this from the gui package to a model (as in MVC) package.</p>
<dl class="method">
<dt id="view.mixins.MySQLMixin.executeMultipleResultsQueries">
<tt class="descname">executeMultipleResultsQueries</tt><big>(</big><em>queries</em><big>)</big><a class="headerlink" href="#view.mixins.MySQLMixin.executeMultipleResultsQueries" title="Permalink to this definition">¶</a></dt>
<dd><p>This method is idential to self.executeResultsQuery
except that it takes a list of query strings, executes each in turn
and returns a corresponding list of results.</p>
</dd></dl>

<dl class="method">
<dt id="view.mixins.MySQLMixin.executeMultipleUpdateQueries">
<tt class="descname">executeMultipleUpdateQueries</tt><big>(</big><em>queries</em><big>)</big><a class="headerlink" href="#view.mixins.MySQLMixin.executeMultipleUpdateQueries" title="Permalink to this definition">¶</a></dt>
<dd><p>This method is idential to self.executeUpdateQuery
except that it takes a list of query strings and executes each in turn</p>
</dd></dl>

<dl class="method">
<dt id="view.mixins.MySQLMixin.executeResultsQuery">
<tt class="descname">executeResultsQuery</tt><big>(</big><em>query</em><big>)</big><a class="headerlink" href="#view.mixins.MySQLMixin.executeResultsQuery" title="Permalink to this definition">¶</a></dt>
<dd><p>Execute a query for which the database will return results.
For example a SELECT query.</p>
</dd></dl>

<dl class="method">
<dt id="view.mixins.MySQLMixin.executeUpdateQuery">
<tt class="descname">executeUpdateQuery</tt><big>(</big><em>query</em><big>)</big><a class="headerlink" href="#view.mixins.MySQLMixin.executeUpdateQuery" title="Permalink to this definition">¶</a></dt>
<dd><p>Execute a query that needs to be committed to the database.
For example, an INSERT or UPDATE query.</p>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="view.mixins.TableViewMixin">
<em class="property">class </em><tt class="descclassname">view.mixins.</tt><tt class="descname">TableViewMixin</tt><a class="headerlink" href="#view.mixins.TableViewMixin" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
<dl class="method">
<dt id="view.mixins.TableViewMixin.countRowsSelected">
<tt class="descname">countRowsSelected</tt><big>(</big><em>tblVw</em><big>)</big><a class="headerlink" href="#view.mixins.TableViewMixin.countRowsSelected" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="view.mixins.TableViewMixin.getCurrentRow">
<tt class="descname">getCurrentRow</tt><big>(</big><em>tblVw</em><big>)</big><a class="headerlink" href="#view.mixins.TableViewMixin.getCurrentRow" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="view.mixins.TableViewMixin.getSelectedRows">
<tt class="descname">getSelectedRows</tt><big>(</big><em>tblVw</em><big>)</big><a class="headerlink" href="#view.mixins.TableViewMixin.getSelectedRows" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</dd></dl>

<dl class="function">
<dt id="view.mixins.bin">
<tt class="descclassname">view.mixins.</tt><tt class="descname">bin</tt><big>(</big><em>QTextStream</em><big>)</big> &rarr; QTextStream<a class="headerlink" href="#view.mixins.bin" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="function">
<dt id="view.mixins.hex">
<tt class="descclassname">view.mixins.</tt><tt class="descname">hex</tt><big>(</big><em>QTextStream</em><big>)</big> &rarr; QTextStream<a class="headerlink" href="#view.mixins.hex" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="function">
<dt id="view.mixins.oct">
<tt class="descclassname">view.mixins.</tt><tt class="descname">oct</tt><big>(</big><em>QTextStream</em><big>)</big> &rarr; QTextStream<a class="headerlink" href="#view.mixins.oct" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
  <h3><a href="index.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">view Package</a><ul>
<li><a class="reference internal" href="#id1"><tt class="docutils literal"><span class="pre">view</span></tt> Package</a></li>
<li><a class="reference internal" href="#module-view.frmdatabasemessage"><tt class="docutils literal"><span class="pre">frmdatabasemessage</span></tt> Module</a></li>
<li><a class="reference internal" href="#module-view.frmmainwindow"><tt class="docutils literal"><span class="pre">frmmainwindow</span></tt> Module</a></li>
<li><a class="reference internal" href="#module-view.mixins"><tt class="docutils literal"><span class="pre">mixins</span></tt> Module</a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="model.html"
                        title="previous chapter">model Package</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="xlrd.html"
                        title="next chapter">xlrd Package</a></p>
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="_sources/view.txt"
           rel="nofollow">Show Source</a></li>
  </ul>
<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="xlrd.html" title="xlrd Package"
             >next</a> |</li>
        <li class="right" >
          <a href="model.html" title="model Package"
             >previous</a> |</li>
        <li><a href="index.html">open-hea 0.1 documentation</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2011, Tiwonge Manda, Brown Msiska, Evidence for Development.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3.
    </div>
  </body>
</html>